<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile">
    
    <f:view renderKitId="PRIMEFACES_MOBILE" />
    
    <h:head>
        <link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
    </h:head>
    
    <h:body>
        
        <pm:page id="first">
            <pm:header title="TabMenu" fixed="true">
                <p:tabMenu activeIndex="0">
                    <p:menuitem value="Home" icon="ui-icon-home" url="#" iconPos="bottom"/>
                    <p:menuitem value="Settings" icon="ui-icon-gear" url="#" iconPos="bottom"/>
                    <p:menuitem value="Search" icon="ui-icon-search" url="#" iconPos="bottom"/>
                </p:tabMenu>
            </pm:header>
            
            <pm:content>
                <p>TabMenu can be placed inside header and footer as well with optional fixed positioning.</p>
                
                <h2>Source</h2>
                <p:accordionPanel activeIndex="-1">
                    <p:tab title="tabMenuFixed.xhtml">
                        <pre class="brush:xml">
&lt;!DOCTYPE html&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile"&gt;
    
    &lt;f:view renderKitId="PRIMEFACES_MOBILE" /&gt;
    
    &lt;h:head&gt;
        
    &lt;/h:head&gt;
    
    &lt;h:body&gt;
        
        &lt;pm:page id="first"&gt;
            &lt;pm:header title="TabMenu" fixed="true"&gt;
                &lt;p:tabMenu activeIndex="0"&gt;
                    &lt;p:menuitem value="Home" icon="ui-icon-home" url="#" iconPos="bottom"/&gt;
                    &lt;p:menuitem value="Settings" icon="ui-icon-gear" url="#" iconPos="bottom"/&gt;
                    &lt;p:menuitem value="Search" icon="ui-icon-search" url="#" iconPos="bottom"/&gt;
                &lt;/p:tabMenu&gt;
            &lt;/pm:header&gt;
            
            &lt;pm:content&gt;
                &lt;p&gt;TabMenu can be placed inside header and footer as well with optional fixed positioning.&lt;/p&gt;
            &lt;/pm:content&gt;
            
            &lt;pm:footer title="Options" fixed="true"&gt;
                &lt;p:tabMenu activeIndex="0"&gt;
                    &lt;p:menuitem value="Home" icon="ui-icon-home" url="\#" iconPos="top"/&gt;
                    &lt;p:menuitem value="Settings" icon="ui-icon-gear" url="\#" iconPos="top"/&gt;
                    &lt;p:menuitem value="Search" icon="ui-icon-search" url="\#" iconPos="top"/&gt;
                &lt;/p:tabMenu&gt;
            &lt;/pm:footer&gt;
        &lt;/pm:page&gt;
        
    &lt;/h:body&gt;
    
&lt;/html&gt;
                        </pre>
                    </p:tab>
                </p:accordionPanel>
            </pm:content>
            
            <pm:footer title="Options" fixed="true">
                <p:tabMenu activeIndex="0">
                    <p:menuitem value="Home" icon="ui-icon-home" url="#" iconPos="top"/>
                    <p:menuitem value="Settings" icon="ui-icon-gear" url="#" iconPos="top"/>
                    <p:menuitem value="Search" icon="ui-icon-search" url="#" iconPos="top"/>
                </p:tabMenu>
            </pm:footer>
        </pm:page>
        
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/sh.js"></script>
        <script language="javascript">
            SyntaxHighlighter.all();
        </script>
        
    </h:body>
    
</html>